<!-- 编辑 -->
<script id="tpl-edit" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        {{ if(user.applet.shop_mode.value == 20) }}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 所属门店 </label>
            <div class="am-u-sm-9 am-u-end">
                <select name="data[shop_id]" style="width:200px" required>
                    <option value="">请选择</option>
                    {{ if(category) }}
                        {{ each category }}
                        <option value="{{ $value.shop_id }}" {{ $value.shop_id == model.shop_id ? 'selected' : '' }}>{{ $value.shop_name }}</option>
                        {{ /each}}
                    {{ /if }}
                </select>
            </div>
        </div>
        {{ /if }}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 店员姓名 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[real_name]" value="{{ model.real_name }}" placeholder="请输入店员姓名" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 手机号 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[mobile]" value="{{ model.mobile }}" placeholder="请输入手机号" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 身份 </label>
            <div class="am-u-sm-9 am-u-end">
                <label class="am-radio-inline">
                    <input type="radio" name="data[status]" value="10" data-am-ucheck {{ model.status.value == 10 ? 'checked' : '' }}>
                    店员
                </label>
                <label class="am-radio-inline">
                    <input type="radio" name="data[status]" value="20" data-am-ucheck {{ model.status.value == 20 ? 'checked' : '' }}>
                    店长
                </label>
				<label class="am-radio-inline">
                    <input type="radio" name="data[status]" value="30" data-am-ucheck {{ model.status.value == 30 ? 'checked' : '' }}>
                    配送
                </label>
            </div>
        </div>
    </div>   
</script>